/**
 * @생성일 : 2011. 9. 14.
 * @package : com.luffy.message.creator
 * 
 *
 */
package com.luffy.message.creator;

import com.luffy.message.model.ErrorCode;
import com.luffy.message.model.ErrorMessage;
import com.luffy.message.model.ResultMessage;
import com.luffy.message.model.SuccessMessage;

/**
 * <pre>
 * 역할적기.
 * </pre>
 * @작성자 : Administrator
 * @작성일 : 2011. 9. 14.
 * @package : com.luffy.message.creator
 *
 */

public final class MessageCreator {
	private final static SuccessMessage successMessage = new SuccessMessage();

	public static Object getSuccessMessage() {
		return successMessage;
	}

	public static Object getDefaultErrorMessage() {
		ErrorMessage em = new ErrorMessage(ErrorCode.DEFAULT_ERROR);
		return em;
	}

	public static Object getErrorMessage(ErrorCode errorCode) {
		ErrorMessage em = new ErrorMessage(errorCode);
		return em;
	}

	public static Object getResultMessage(Object resultData) {
		ResultMessage rm = new ResultMessage(resultData);
		return rm;
	}
}
